#import <Foundation/Foundation.h>
#import "NoteTree.h"

@interface Bar : NSObject <NSCoding>{
	NoteTree *noteTree;
	UIView *barView;
	NSMutableArray* currentNotes;
}

@property (nonatomic, retain) NoteTree *noteTree;
@property (nonatomic, retain) UIView *barView;
@property (nonatomic, retain) NSMutableArray *currentNotes;

- (void)drawBar;
- (void)clearBar;
- (void)resetCurrentNotes;
- (void)traverseForNotesFromNode:(NoteNode*)currentNode;
- (void)insertNoteAt:(NoteNode*)insertNode withPitch:(int)insertPitch andButton:(NodeButton*)insertButton;
- (void)removeNoteAt:(NoteNode*)removeNode;
@end
